import request from '@/utils/request'

// 发送WhatsApp消息
export function sendWhatsAppMessage(data) {
  return request({
    url: '/chatbot/api/send-message/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

// 批量发送WhatsApp消息
export function sendBulkWhatsAppMessages(data) {
  return request({
    url: '/chatbot/api/send-bulk-messages/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

// 文字转语音并发送
export function sendTextToVoice(data) {
  return request({
    url: '/chatbot/api/send-text-to-voice/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

// 获取聊天机器人列表（用于发送消息时选择机器人）
export function getChatBotsForMessage() {
  return request({
    url: '/chatbot/api/chatbot/',
    method: 'get'
  })
}
